package com.work.cos.service.interfc.pr;

import java.util.List;

import com.work.cos.domain.entity.pr.PrOrderDetailEntity;
import com.work.cos.domain.entity.pr.PrOrderEntity;
import com.work.cos.service.interfc.IBaseService;

public interface IPrOrderService  extends IBaseService<PrOrderEntity>{
	
	/**
	 * 
	 * @param orderStatus
	 * @return
	 */
	List<PrOrderEntity> getListByOrderStatus(Integer orderStatus, Long userId);
	
	
	/**
	 * 
	 * @param userId
	 * @param id
	 * @return
	 */
	PrOrderEntity getListByUserIdAndId(String userId,Long id);
	
	/**
	 * 
	 * @param orderStatus
	 * @param userId
	 * @param id
	 * @return
	 */
	boolean toStatusUpdate(Integer orderStatus, String userId,Long id);
	
	/**
	 * 
	 * @param isCancel
	 * @param userId
	 * @param id
	 * @return
	 */
	boolean toStatusCancel(Integer isCancel, String userId,Long id);
	
	/**
	 * 
	 * @param list
	 * @return
	 */
	boolean add(List<PrOrderDetailEntity> list);

}
